# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test01
# Description:
# Author:       98745
# Date:         2019/5/11
#-------------------------------------------------------------------------------
from time import sleep,ctime
import _thread as thread


def fun1():
    print('开始运行：fun1:',ctime())
    sleep(4)
    print('fun1运行结束:',ctime())


def fun2():
    print('开始运行：fun2:',ctime())
    sleep(2)
    print('fun2运行结束',ctime())


def main():
    print('开始运行：',ctime())
    thread.start_new_thread(fun1,())
    thread.start_new_thread(fun2,())
    sleep(6)
    print('运行结束时间：',ctime())


if __name__ == "__main__":
    main()

